-- GENERATED SPELL FOR [Daggerspine Shorestalker] --


function spell0_2368(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_2368', 611, 1)
end

function spell1_2368(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2368', 5276, 1)
end

function Sorts_2368(pUnit, Event)
local choix_sorts_2368 = math.random(0, 1)
if choix_sorts_2368 == 0 then
pUnit:RegisterEvent('spell0_2368', 1, 1)
end
if choix_sorts_2368 == 1 then
pUnit:RegisterEvent('spell1_2368', 1, 1)
end
end

function mob2368_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2368', math.random(1500, 3000), 1)
end

function mob2368_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2368_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2368_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2368, 1, 'mob2368_Action')
RegisterUnitEvent(2368, 2, 'mob2368_Leave')
RegisterUnitEvent(2368, 3, 'mob2368_Kill')
RegisterUnitEvent(2368, 4, 'mob2368_Die')
